const os = require("os");
/**
 * 获取本机IPV4
 */
const getIP = () =>
	Object.values(os.networkInterfaces())
		.flat()
		.find((i) => i.family === "IPv4" && !i.internal)?.address || "127.0.0.1";

exports.locahost = "http://" + getIP() + ":3000";
